﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<Veteran_cms.Models.mail_template>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<!-- Validation form -->
<%using (Html.BeginForm("Create", "ManageEmailTemplate", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
    {
       %>
      
       
    <fieldset>
        <div class="widget">
          <div style="float: right">
                    <a href="<%=Url.Action("IndexEmailTemplate","ManageEmailTemplate") %>" title="" class="backTo" style="margin: 5px;">
                        <img src="../../images/adminSite/icons/prev.png" alt="" class="icon" /><span>TRỞ VỀ</span></a></div>
                <div class="title">
                    <img src="../../Images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>
                        Email mẫu</h6>
                </div>
                <%if (ViewData["Msg"] != null)
                  {%>
                <div class="nNote nSuccess hideit">
                    <p>
                        <strong>
                            <%=ViewData["Msg"]%></strong></p>
                </div>
                <%} %>
            
            <div class="formRow">
                <label>Tên:<span class="req">*</span></label>
                 
                <div class="formRight"><%:Html.TextBoxFor(model => model.name, new { @class = "validate[required,maxSize[100]]"})%>
                </div>
                <div class="clear"></div>
                
            </div>
             <div class="formRow">
                <label>Loại:<span class="req">*</span></label>
                <div class="formRight">  <%=Html.DropDownList("type", new[] { new SelectListItem { Text = "Thông báo", Value = "Notice", Selected=true },
                                                                              new SelectListItem{Text="Lấy lại mật khẩu", Value="RePassword"}})%>
               </div>
                <div class="clear"></div>
            </div>

            <div class="formRow">
                <label>Danh xưng:<span class="req">*</span></label>
                <div class="formRight"><%:Html.TextBoxFor(model => model.title, new { @class = "validate[required,maxSize[200]]", id = "reg" })%>
               
                </div>
               
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <label>Tiêu đề Mail:<span class="req">*</span></label>
                 <div class="formRight"><%:Html.TextBoxFor(model => model.subject, new { @class = "validate[required,maxSize[255]]", id = "req" })%>
                 </div>
                <div class="clear"></div>
            </div>
             <div class="formRow">
                <label>Nội dung:<span class="req">*</span></label>
                <div class="formRight">  <%=Html.TextAreaFor(model => model.body, new { @class = "validate[required]",id="editor",name="editor" })%>
               </div>
                <div class="clear"></div>
            </div>
             <div class="formRow">
                <label>Chữ ký:<span class="req">*</span></label>
                <div class="formRight">  <%=Html.TextAreaFor(model => model.signature, new { @class = "validate[required]",id="editor1",name="editor" })%>
               </div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="widget">
            <div class="formSubmit"><input type="submit" value="Lưu" class="blueB" /></div>
            <div class="clear"></div>
            <div><%:Html.HiddenFor(model => model.template_id)%></div>
        </div>
             
    </fieldset>
    <%} %>
    
   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleAreaPlaceHolder" runat="server">
</asp:Content>
